﻿@model GameProject.Models.GameInstance

@{
    ViewBag.Title = "Búa til leik - 4 í röð";
}

<h2>4 í röð</h2>

<h3>Búa til leik</h3>
<br />

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>GameInstance</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </div>
            @Html.HiddenFor(x => x.ExpectedNumberOfPlayers)
        <p>
            <input type="submit" value="Búa til leik" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Til baka", "GameList")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
